package com.bingo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bingo.entity.User;
import com.bingo.entity.dto.req.CheckUser;

import java.util.HashMap;


public interface UserService extends IService<User> {

    //查询用户
    User getUserByNo(String userNo);

    //检验密码是否正确
    boolean checkPassword(String userNo, String password);

    //获取全部用户
    HashMap<String,String> getAllUser();

    //注册用户
    boolean register(User user);

    //更新用户信息
    boolean updateUser(User user);

    //删除用户
    boolean deleteUser(String userNo);

    //修改密码
    boolean updatePassword(CheckUser user);

}
